package com.xjrsoft.module.customerTwo.AppManage.sales_order.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;

/**
 * 实体类
 *
 * @author lisen
 * @since 2024-04-25
 */
@Data
@TableName("sales_order")
public class SalesOrder implements Serializable {

	private static final long serialVersionUID = 1L;

	@TableId(value = "id", type = IdType.AUTO)
	private Integer id;
	/**
	* 商机id
	*/
	@TableField("business_opportunity_id")
	private String businessOpportunityId;
	/**
	* 商机编号
	*/
	@TableField("business_opportunity_number")
	private String businessOpportunityNumber;
	/**
	* 组件id
	*/
	@TableField("assembly_id")
	private String assemblyId;
	/**
	* 订单编号
	*/
	@TableField("order_number")
	private String orderNumber;
	/**
	* 客户id
	*/
	@TableField("customer_id")
	private String customerId;
	/**
	* 客户编码
	*/
	@TableField("customer_code")
	private String customerCode;
	/**
	* 联系人id
	*/
	@TableField("contactor_id")
	private String contactorId;
	/**
	* 联系人姓名
	*/
	@TableField("contactor_name")
	private String contactorName;
	/**
	* 联系人电话
	*/
	@TableField("contactor_phone")
	private String contactorPhone;
	/**
	* 订单签订日期
	*/
	@TableField("create_date")
	private LocalDateTime createDate;
	/**
	* 销售部门id
	*/
	@TableField("sales_department_id")
	private String salesDepartmentId;
	/**
	* 销售人id
	*/
	@TableField("sales_man_id")
	private String salesManId;
	/**
	 * 销售合同号
	 */
	@TableField("contract_number")
	private String contractNumber;
	/**
	* 销售合同名称
	*/
	@TableField("contract_name")
	private String contractName;
	/**
	* 合同开始日期
	*/
	@TableField("contract_start_date")
	private LocalDateTime contractStartDate;
	/**
	* 合同结束日期
	*/
	@TableField("contract_end_date")
	private LocalDateTime contractEndDate;
	/**
	* 含税金额
	*/
	@TableField("tax_amount")
	private BigDecimal taxAmount;
	/**
	* 不含税金额
	*/
	@TableField("none_tax_amount")
	private BigDecimal noneTaxAmount;
	/**
	* 合同说明
	*/
	@TableField("contract_instruction")
	private String contractInstruction;
	/**
	* 组件id
	*/
	@TableField("sales_assembly_id")
	private String salesAssemblyId;
	/**
	* 附件
	*/
	@TableField("files")
	private String files;
	/**
	* 审核状态
	*/
	@TableField("state")
	private Integer state;
	/**
	* 审核人
	*/
	@TableField("auditor_id")
	private String auditorId;
	/**
	* 审核日期
	*/
	@TableField("audit_date")
	private LocalDateTime auditDate;
	/**
	* 不通过原因
	*/
	@TableField("reject_reason")
	private String rejectReason;

	@TableField("contract_state")
	private Integer contractState;

	/**
	 * 商机总包商
	 */
	@TableField("general_contractor")
	private String generalContractor;
}
